package com.example.anday3.pojo;

import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;

public class LoginResData {
    @SerializedName("state")
    private Integer state;
    @SerializedName("msg")
    private String msg;
    @SerializedName("data")
    private DataLogin data;

    public static LoginResData objectFromData(String str) {

        return new Gson().fromJson(str, LoginResData.class);
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataLogin getData() {
        return data;
    }

    public void setData(DataLogin data) {
        this.data = data;
    }

    public static class DataLogin {
        @SerializedName("clockin_am")
        private String clockinAm;
        @SerializedName("clockin_pm")
        private String clockinPm;
        @SerializedName("clockin_address")
        private String clockinAddress;
        @SerializedName("clockin_lng")
        private String clockinLng;
        @SerializedName("clockin_lat")
        private String clockinLat;
        @SerializedName("user_id")
        private Integer userId;
        @SerializedName("jobNumber")
        private String jobNumber;
        @SerializedName("department")
        private String department;
        @SerializedName("account")
        private String account;
        @SerializedName("mobile")
        private String mobile;
        @SerializedName("nickname")
        private String nickname;
        @SerializedName("avatar")
        private String avatar;
        @SerializedName("avatar2")
        private String avatar2;
        @SerializedName("token")
        private String token;

        public static DataLogin objectFromData(String str) {

            return new Gson().fromJson(str, DataLogin.class);
        }

        public String getClockinAm() {
            return clockinAm;
        }

        public void setClockinAm(String clockinAm) {
            this.clockinAm = clockinAm;
        }

        public String getClockinPm() {
            return clockinPm;
        }

        public void setClockinPm(String clockinPm) {
            this.clockinPm = clockinPm;
        }

        public String getClockinAddress() {
            return clockinAddress;
        }

        public void setClockinAddress(String clockinAddress) {
            this.clockinAddress = clockinAddress;
        }

        public String getClockinLng() {
            return clockinLng;
        }

        public void setClockinLng(String clockinLng) {
            this.clockinLng = clockinLng;
        }

        public String getClockinLat() {
            return clockinLat;
        }

        public void setClockinLat(String clockinLat) {
            this.clockinLat = clockinLat;
        }

        public Integer getUserId() {
            return userId;
        }

        public void setUserId(Integer userId) {
            this.userId = userId;
        }

        public String getJobNumber() {
            return jobNumber;
        }

        public void setJobNumber(String jobNumber) {
            this.jobNumber = jobNumber;
        }

        public String getDepartment() {
            return department;
        }

        public void setDepartment(String department) {
            this.department = department;
        }

        public String getAccount() {
            return account;
        }

        public void setAccount(String account) {
            this.account = account;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public String getAvatar2() {
            return avatar2;
        }

        public void setAvatar2(String avatar2) {
            this.avatar2 = avatar2;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }
    }
}
